import request from './request'

export const getAnimes = (params) => {
  return request({
    url: '/anime/list',
    params
  })
}

export const addAnime = (data) => {
  return request({
    url: '/anime/add',
    method: 'post',
    data
  })
}

export const editAnime = (data) => {
  return request({
    url: '/anime/edit',
    method: 'post',
    data
  })
}

export const deleteAnime = (id) => {
  return request({
    url: `/anime/delete/${id}`
  })
}

export const completeAnime = (id) => {
  return request({
    url: `/anime/complete/${id}`
  })
}

export const incrementAnime = (id) => {
  return request({
    url: `/anime/increment/${id}`
  })
}
